inital rough layout with javascript taking user inputs for diagrams