update js for jquery 1.9+
remove short tags from templates