more move from b2g -> js