Added javascript controller