Added the js controller