Refactor js. Add foundation for skills chart.