Close and redirect test

Test close Fancybox/redirect.
JS Library Consolidation

- Consolidated some basic functionalities into their respective
libraries for neatness and portability.