moved page specific JS into corresponding views