insert corresponding javascript file into index.html

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>
if file name has -controller suffix do not add Controller

to avoid having a name like simpleControllerController

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>