Initial implementation of JavaScript-based CS initialization

Change-Id: I3753eb36ccf26fcae2f68d38799ff7f013b2831f
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>