Got the dynamic javascript form working