Add an option to set default view extenstion

This adds an option to set a different default view extension than `js` (eg. `coffee`).