defer javascript execution

See http://peter.sh/experiments/asynchronous-and-deferred-javascript-execution-explained/