WikiEditor: Make JS preview load required modules

Change-Id: I5cc3c8577ab088eeba9e6f4ac78411c31ee38fa9