Updated js file to attempt to fix oversizing