If I had written it, it would've taken 3 minutes, worked with every browser, and smelt like a summer day in Tuscany.
• If all you want to do is whine about how useless you are at debugging trivial JS issues, use Ranter's Corner.
• If you want to receive advice on how you can stop being useless, post in Coding. It's not like these folder things are new technology or anything...
Whether or not a random person decides to view source is irrelevant. More relevant, however, is whether a developer will come along in six months to make a change and wonder who did the ugly hack and why - they will of course be able to check the source control commit history for that line and see the explanation for making that particular change, right?
Jeepers! Next you'll be saying you were working directly on the live server for those three hours.