restores JS functionality in new ql impl. Does not implement js func's