[#1673] Don't append semicolon to javascript by default
[#1689] avoid out-of-memory when bytecache file is corrupted