Remove unused variable on js