Minor fixes for sapphire example's js