adds further js functions and views