Facade in Scala & JavaScript