Add js constructor example