Update expdb.js

added "var" statements missing on expdb-add
properly indented stuff