javascript plugin allows to execute any function of javascript code in a thread