Make the XBlock javascript work both in Studio and LMS.
Make the XBlock javascript work both in Studio and LMS.

aliaksandrb/edx-sga,cecep-edu/edx-sga,Lektorium-LLC/edx-sga,kursitet/edx-sga,kursitet/edx-sga,mitodl/edx-sga,kotky/edx-sga,ovnicraft/edx-sga,mitodl/edx-sga,wwj718/edx-sga,olexiim/edx-sga,macdiesel/edx-sga,RPI-OPENEDX/edx-sga,CDOT-EDX/edx_mfu,Lektorium-LLC/edx-sga,amir-qayyum-khan/edx-sga,macdiesel/edx-sga,aliaksandrb/edx-sga,amir-qayyum-khan/edx-sga,Lektorium-LLC/edx-sga,mitodl/edx-sga,eduNEXT/edx-sga,aliaksandrb/edx-sga,oleg2106/edx-sga,RPI-OPENEDX/edx-sga,ovnicraft/edx-sga,oleg2106/edx-sga,ovnicraft/edx-sga,macdiesel/edx-sga,olexiim/edx-sga,wwj718/edx-sga,Stanford-Online/edx-sga,eduNEXT/edx-sga,CDOT-EDX/edx_mfu,wwj718/edx-sga,RPI-OPENEDX/edx-sga,olexiim/edx-sga,oleg2106/edx-sga,macdiesel/edx-sga,ovnicraft/edx-sga,kotky/edx-sga,cecep-edu/edx-sga,kotky/edx-sga,Lektorium-LLC/edx-sga,Stanford-Online/edx-sga,eduNEXT/edx-sga,mitodl/edx-sga,kotky/edx-sga,Lektorium-LLC/edx-sga,eduNEXT/edx-sga,cecep-edu/edx-sga,cecep-edu/edx-sga,mitodl/edx-sga,macdiesel/edx-sga,cecep-edu/edx-sga,kotky/edx-sga,RPI-OPENEDX/edx-sga,ovnicraft/edx-sga,Stanford-Online/edx-sga,amir-qayyum-khan/edx-sga,CDOT-EDX/edx_mfu,RPI-OPENEDX/edx-sga,kursitet/edx-sga,eduNEXT/edx-sga