compile laze to javascript