Javascript fixed

I had to fix up the javascript after cleaning the controllers