[JS] Sourced actor

retrieve code using simple callback instead of module