JavaScriptSecurityEnchantments Masters Thesis: Client-side code security analysis and practical application of CIA principles