removed some unnecessary javascript