Compile scripts