Fixed bad js constant names and added config macro for "spine" extension