Form generator - generating model fields in the .js file.