Moving JS initialization back up, because charts demo needs this