Added some js-magic.