Removes javascript from view