Anki add-on: Refresh WebView (avoid duplicate javascript)

Refresh the WebView to avoid javascript being included multiple times. In reviewer: When a new card is shown TODO: When flipping to the back of the card In clayout: When text in the editor is changed When switching the editor from Front/Back/Styling When switching the previewer from Front/Back In previewer: When a new card is shown When flipping to the back of the card I'm fairly happy with the way I'm doing this and expect it to be reasonably resistant to breaking on updates.

GitHub repository: austinhasten/ankirefreshwebview