move something to js globals