mvc framework almost configured, problem with template javascript