modified js file which takes keywords