remove unecessary passing in of model
firefox fixes. move js to move rational location.