Restructure project and add requirejs test