There's no file system available for javascript (at the moment).
To handle those kind of things you need to go through ajax calls and online database hosting.
Check the how do I faq, as well as the 2 first pages of the how do I forum, this questions has been talked about in several topics those days.