revised js file