Adding JS controller