omit javascript fragments
remove unnecessary javascript