Changed cursor to use prototype