Pass objectId to js