Trying to get app to work on Intel XDK