Added jsdom node module for testing the view
Converted view to avoid jquery and use DOM API