added device ready check
js updates
js updates
lots of changes