sample js library