Update main.js

added functionality to generate random tracks