Fixed the js retina check bug. Previously it changed every instance of a period in the image src rather than just that attached to the file type.