Tidying js hint errors.