testing javascript api mapping