Wrap UI stuff in jquery onload, fix track output