creating client js library