You are binding to the scroll() event twice in quick succession which may in part account for the twitching.
If '#servicediv' exists on the page then there is no need to check its length.
Code:
$(window).scroll(function () {
if ($(window).scrollTop() < 380) {
$(window).scrollTop(380);
}
});
but you'll need to test this.