Fixed a broken controller test, added some initial javascript code