Move plugin init to html