Dynamic Javascript form based on datasource