Factorisation, comments and secure asset insertion