erlydtl can use js templates

Hi Evan - this does 2 simple things which have been useful for me in writing dynamically-generated JS files:

- allows .js DTL templates, so editors do JS syntax-colouring based on extension
- returning {js, Data, Headers} from controller automatically sends "Content-Type: application/javascript"

Cheers
Igor