removed unnecessary javascript and fixed formatting