#316 typescript to javascript