added prepopulate for freelinking

in jquery