erasing non used js methods