A try with jsmn

Added #pragma once to .h files
Added error handling to js