adding javascript library and updating docuemtnation