[Script] Support usage of JS Facade in a template