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

The tabbing looks incorrect, shouldn't it be two spaces?