Removed unnecessary javascript code