change order of javascript resources, wait for dom ready before initializing print module, closes #252