added regular javascript support