compiled chosen to js