The information I could find about controlling I2c,using Java Script in the XDK is mostly from other community threads. There are also other guides users have made using the Edison. Some use Java Script in the XDK but not I2C. Some use I2c in the XDK but are not using Java Script.
These are some of the threads I believe would help you the most: