modified html reference in JavaScript