some jslint cleanups and fixing indentation, now consistent
adding isRetina function to get information about retina support