added log.c to javascript build