improve dep management in JS compiler + added initial Edison example (ongoing work)