fixing ie js bug, one comma too many