fixing js-hint errors