Minor documentation fix - proper javascript for examples