Issue edina/spatial-memories#6 use require instead of define