precompiles assets: javascript for pieces, error function for the uniquness of GroupPieces