Added initial JS procedure