some js hint fixes