Object oriented javascript API creation exploration and learning