Fix timing issue, bootstrap the angular application only after document is available.