fix jQuery dir
fix startup ordering issue