updated plugin example with js dependencies feature