Adds missing JavaScript code to delete user ranks