added page option to grid search js