removed dependence on jquery append