added calls to js