Fix JS hint warnings