javascript fund