Move sidebar JS to application bundle