Added jquery view events, and added map preview to _main.js