fixed 'clear' bug by adding jQuery RemoveClassFromElement function.