refactored some functions in compass in order to work with the testSpec (jQuery error)