Added Javascript Solution.