chore(build): update custom build to use $modal service

Closes #927