added implementation for C / JavaScript
added C/JS Code