Changed a function which was not working in Chrome.

Box colors weren't getting updated in chrome,
due to the way in which the color was updated.
box.style() was not working in Chrome. Replaced it
with box.setAttribute() which successfully updates
the color. Added .gitignore to ignore temprorary
text editor files.