Remove jquery reference and use DOMContentLoaded