font include device_id in iphone control requests
dont include device id in javascript requests for web app
moved javascript into new file