playing with js api