Javascript check for script on page, add script or return bollean