Fixed text domai nreference and non-english text
Add javascript enqueues adn document the code a bit