moved document ready to bundle.js