update to js version 0.5.1