Support for TOML and JAVASCRIPT in front matter

Code is not optimized, but passes all the tests including different line
endings.