Purge unnecessary javascript files.