JavaScript is best for simple browser games made for the users to have fun. You're free to try monetizing your JavaScript game, but it'll be hard to do on a simple browser game. If you want to create great complex games, you'll need other game development-purpose programming languages.