Minor front-end updates
Refactored code

Moved javascript out of the index.html file
Moved index.html into the mpr application