Bug fixes

Added Jquery cross domain scripting; added closing </script> tag for
device ready event