SPArring with the Security of Single Page Applications