Fix js async loading issue

Scripts could be run before jquery and nvd3 files if not wait, that may cause issue.