add a better syntax for Javascript