Added jquery etc libs back in, but checked for window.attachEvent to satisfy chrome