Use factory file so JS used by studio_xblock_wrapper.html goes through RequireJS Optimizer

@polesye 
yay :)