Worked on setting backwards compatiblity and jshint issues #251