buggy script.js(working)