Fixes a typo causing fields not to be cleared
Compiles JS