Javascript in implementation [2]