adding the media and the globals to the translated javascript... damn