replaced unnecessary javascript