reformat moving_object.js