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

Is this required? Doesn't look like you're using it anywhere. There's a better way to pass scope, for example using the $.proxy method.