Update script to read ajax action from form