Refactor jQuery into module pattern, fix modal, fix scroll animation