plugin init code moved to index.html