adding javascript implementation for first euler problem