split JS from application to a separate file
Add total seats, refs #4.