Remvoed jQuery dependency, clear cache on close