Js experiment

Just an experiment to use .attr('href') when possible.
Also, use switch instead of ugly if after if