js hint fixes