Start to port JavaScript examples