add method to return json
fix travis.js last_build_status