Made fields more java-script friendly.