javascript changes from smashing boxes