js hint violations fixes