Livereload script taken from tinylr that works with Chrome Apps