PageSelector should allow fieldnames with brackets[]

The code as it was threw jQuery errors when a fieldname with 'array' notation was provided, such as fieldname[2]. Since this notation has many useful applications in PHP (simplified processing of lists) I wrote some code to prevent those errors from happening.