Javascript evaluator with seamless asynchronous handling