Added my own solution

My solution using pure JavaScript, no jQuery