WIP: getting JS used by studio_xblock_wrapper.html through Optimizer.

@polesye 
@dan-f I included this minor cleanup you recommended.