cleaned up clear js