javascript clean-up
making the app work with spring mvc controller rather than jsp pages.