js hint corrections