slight modification on js file