Added var & init to .ready()