fixed how it works JS spec