small changes on js file.