better support of define in run module
append .js extension to run module's file
update to latest curl dev