improved js library