This is a JS framework, define a new function to create application by js