update
add 2 js snippets
Now console won't be regarded as undefined