Javascript tool