added fraction js