Feature Function Map Javascript Method Syntax Python