new mobile js

jshinted, hoping it may fix some issues