precompile and js shortened repeat