Add bpr.js

Not mine, go see the original project