Remove unused variable in js file