Update maps.js

Added a type variable for keys
Added remove
Switched to eq instead of using identity equality on keys