created and implemented partially LoRe.js