rewrote script.js not finished yet