Updated index.html options and added error catching and console.log polyfill