Tweaked Javascript for speed

Inlined the invisible menu javascript for speed: since the script is
small transferring it every time is faster then waiting for another http
request on the server.

Made script tags "script async" to defer their execution.