Chop out bits of JS into separate files.
Have HTML partials rolled into main doc when not in debug mode.