refacted kickstart.js