Fixed bug on js file