Drawing lines using html div layers and javascript