Added C and Javascript codes