Reformatted EIDB functions as javascript code instead of markdown

It easier to add comments to each item this way.

( this would probably be done better as comments in code )