fixed assign_points method to be upper case to match jquery