I have moved this code into the switch statement above, and yes it looks better!

About the LazyLoader, I think Music app still need to check if the PlayerView is needed to load or not, so I still need to check if the PlayerView is loaded then I can prevent to load the Player.js at first start.