remove unnecessary javascript