no one would ever want to do something like that.
Firstly it will be slow since JavaScript (a language not designed to handle databases) will have to do all the computations and stuff on the textfile.
If using MySQL then after installing something like PHPMyAdmin you're good to go whereas I would guess that javascript thing would take a bit to set up. It more sounds like using Ms Access, which in the real world....no one trusts microsoft. I wouldn't trust them with my data.
With the JavaScript thing, there would be no solid way (if there is then it is sure to kill you) of setting up relationships between tables. Thus no possibility of expanding.
If you were just wanting to record data, then you might as well just use Excel, make a table and put in the information. But in my opinion if you want the data to be readily accessible then the best way is to go for something like MySQL