JS sprite positional bug fix