JavaScript instrumentation for browser security | Synapse