Security on an untrusted client - locking down a javascript library | Hacker News Reader