fix createProject page, move xpaas scripts to separate javascript file