js beautify & js hint fixes