Fixing javascript references.