Added title support, split JS, updated README