fixed; appendChild of null error
GH #36