javascript jslinted partially, bug fixes and enhancements for mobile phone support