Empire of Code JavaScript solutions

Here is a gist with my Empire of Code solutions in JavaScript programming language: