remove unnecessary javascript code

remove unnecessary javascript code