Javascript library for the pibot