Fix js errors

Fixes 2 JS errors that prevented Comments to load in certain instances.

![ ](http://media.giphy.com/media/pxl9J1y4n6UCI/giphy.gif)