js and views