Moving sha2test js into its own file

This snippet will be easy to paste into whatever.