LILY-220: make js load until dom is ready