Fix bug with init loader on $(document). Add global loader demo.