Fixed jquery refs.
Added global._ = _; so that underscore functions are available in templates.