Moved js-module definition to platform