changes to ftl to fix whitespace formatting, javascript formatting, meth...

...od names, and imports