$ 0 0 $.getenv("USERNAME") works for Windows and it or something similar will work for OS X. Edit:$.getenv("USER") for OS X.