Private javascript code