Fixed JS hint errors