moved the JS lower in the script - it was affeting ajax call output