Make the XBlock javascript work both in Studio and LMS.