Split JS model & view files. Resolved JS inclusion in page.