Update BookId_detector.js

js is working , need to update logic a bit more professional but it work for now happy coding