removed unnecessary javascript functions