The following worked for me on this StackOverflow page:
$(".bottom-notice").css("margin-left", "-"+500+"px");
Notice there's no space between the - and the closing ". I think that might be what is causing your issue. Otherwise make sure width
is actually a number.