Changed Javascript Logic
Merge pull request #4 from ajjimenez/master

Changed Javascript Logic