Fix bad references and keys in sample queryable migration

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Add support for case where no samples are loaded

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Add jshint travis pre-build step and fix existing errors

Signed-off-by: Don Naegely <naegelyd@gmail.com>