added the sha256 function to its own js file
updated code to allow popup, content, and background to pass messages