Added DOMContentLoaded to $.onReady