added js file for tracking, generated api controllers