basic javascript interpreting implemented