Javascript for Bishop MVC