Fix javascript errors (literal)