check if element has parentNode before removing from it
build rickshaw.js