Added index detection to MLJS and sample app. Rebuilt binaries. Updated planning doc.