finish writing a javascript moduel loader