Moved generate_password ajax page to oop