Changed javascript to few-large-files structure