removing unnecessary javascript