updated js to support chrome bug