add main app and necessary cross-browser javascript files