While Maven is not particularly well suited for frontend technologies such as Javascript, there are many plugins which can ease working with them.
Just remember that Maven is mainly a Java tool, and any other technology should be a secondary aspect of the project. When the frontend moves away from Java it is best to split the project in two.