Added javascript polling