Javascript and alike wizardries