added size function to EJSApp external interface