Improved code quality (IE7 compatibility)

I improved the code quality a bit by discarding the trailing colons before the end of an array or object notation. Trailing colons lead to syntax errors on older JavaScript interpreters.

Unfortunately, NetBeans created a wrong diff here; there were just few lines changed.