adding error checking algorithms to the js and deleting sass cache files