Updated code to fix issue with opening in Chrome.