View refactor

Refactored view into separate JSP and Javascript documents