adding js to views