Upgrade up to 3.3.5. Rails 4 compatibility.

Hi @iblue. I'm upgrade d3 up to 3.3.5, and fix Rails 4 compatibility.