refactored code, bg color, added script file