Replace self-invoking function with an initiation call from the markup