added mobile.js stuff -- not tested