Modular javascript (and php) core