fix readme
add log output to JavaScript
emulate console for IE, otherwise JavaScript would break.