Added modal code; moved length calculation to jade
Design almost finalized